package com.telecom.restaurant.domin.vo;

import com.telecom.restaurant.util.MoneyUtil;

import java.util.List;

/**
 * Created by qiqi on 2019/12/15.
 */
public class OrderVO {

    private Long orderId; // 订单id

    private Integer dayNo; // 当天的编号

    private String mobile; // 下单人手机号

    private String orderTime; // 下单时间

    private String actualPickTime; // 实际取餐时间

    private String pickCode; // 取餐码

    private List<OrderFoodVO> foodList; // 菜品列表

    private Integer status; // 订单状态

    private Integer type; // 订单类型 1套餐  2小吃

    private Integer originPrice; // 原价

    private Integer couponPrice; // 优惠券价格

    private Integer totalPrice; // 总价

    private String payTime; // 支付时间

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getActualPickTime() {
        return actualPickTime;
    }

    public void setActualPickTime(String actualPickTime) {
        this.actualPickTime = actualPickTime;
    }

    public String getPickCode() {
        return pickCode;
    }

    public void setPickCode(String pickCode) {
        this.pickCode = pickCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOriginPrice() {
        return originPrice;
    }

    public void setOriginPrice(Integer originPrice) {
        this.originPrice = originPrice;
    }

    public Integer getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Integer couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public List<OrderFoodVO> getFoodList() {
        return foodList;
    }

    public void setFoodList(List<OrderFoodVO> foodList) {
        this.foodList = foodList;
    }

    public Integer getDayNo() {
        return dayNo;
    }

    public void setDayNo(Integer dayNo) {
        this.dayNo = dayNo;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOriginPriceForShow() {
        if (originPrice == null) {
            return "0.00";
        }
        return MoneyUtil.convertFen2Yuan(originPrice);
    }

    public String getCouponPriceForShow() {
        if (couponPrice == null) {
            return "0.00";
        }
        return MoneyUtil.convertFen2Yuan(couponPrice);
    }

    public String getTotalPriceForShow() {
        if (totalPrice == null) {
            return "0.00";
        }
        return MoneyUtil.convertFen2Yuan(totalPrice);
    }

}
